I Chronicles 10:14 Midrash

וְלֹֽא־דָרַ֥שׁ בַּֽיהוָ֖ה וַיְמִיתֵ֑הוּ וַיַּסֵּב֙ אֶת־הַמְּלוּכָ֔ה לְדָוִ֖יד בֶּן־יִשָֽׁי׃ (פ)

and inquired not of the LORD; therefore He slew him, and turned the kingdom unto David the son of Jesse.

Read midrashic interpretation of I Chronicles 10:14: and classical rabbinic exegesis.